home *** CD-ROM | disk | FTP | other *** search
/ TeX 1995 July / TeX CD-ROM July 1995 (Disc 1)(Walnut Creek)(1995).ISO / tex-k / tex-k-archive.past / tex-k-archive.gz / tex-k-archive / 000671_source@ovid.jpl.nasa.gov_Mon Jun 20 02:58:04 1994.msg < prev    next >
Internet Message Format  |  1994-10-11  |  1KB

  1. Received: from elroy.jpl.nasa.gov by cs.umb.edu with SMTP id AA20806
  2.   (5.65c/IDA-1.4.4 for <tex-k@cs.umb.edu>); Mon, 20 Jun 1994 13:19:48 -0400
  3. Received: from ovid.Jpl.Nasa.Gov by elroy.jpl.nasa.gov (4.1/SMI-4.1+DXR)
  4.     id AA20761; Mon, 20 Jun 94 09:58:13 PDT
  5. Received: by ovid.Jpl.Nasa.Gov (920330.SGI/921111.SGI.jetsuns)
  6.     for @elroy.Jpl.Nasa.Gov:tex-k@cs.umb.edu id AA12274; Mon, 20 Jun 94 09:58:04 -0700
  7. Date: Mon, 20 Jun 94 09:58:04 -0700
  8. From: source@ovid.jpl.nasa.gov (Source Code Maintainer)
  9. Message-Id: <9406201658.AA12274@ovid.Jpl.Nasa.Gov>
  10. To: tex-k@cs.umb.edu
  11. Subject: bug in xdvik-1.8 (rounding error)
  12.  
  13.  
  14. Hello,
  15.  
  16. Finally traced this down to a real bug. 
  17.  
  18. The variable fsize in xdvik-1.8 
  19. (dpi in font-open.c) is calculated and 
  20. interpreted incorrectly. For an 11 pt font
  21. on a Sparc/SGI class Unix machine, the
  22. fsize is calculated to be 328.499 Thus, it
  23. rounds to 328 when you add .5. The integer value should be 329.
  24. This can be achieved by adding .51 instead of .5
  25. everywhere but this is faulty logic. 
  26.  
  27. You should look at the default fonts in the distribution
  28. and map possible values of fsize to the default fonts
  29. and determine if the correct files are specified. That
  30. will tell you what the correct method is to calculate
  31. the integer value of fsize (dpi).
  32.  
  33. Richard
  34.  
  35. richard@ovid.jpl.nasa.gov
  36.  
  37.